Conversation
主要改动: 1. marketplace.json:新增 email-notify 和 project-structure 插件条目 2. 更新所有 4 个插件的 plugin.json,补全缺失字段: - 添加 category 分类标签 - 添加 tags 搜索关键词 - 添加 homepage GitHub 地址 - 添加 license MIT 许可证 使用原理: - 提高插件可发现性,完善元数据一致性 - 符合 Claude Code 插件市场规范 - 便于插件管理和分类展示 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
问题: - hooks.json 中的脚本路径为相对于工作目录的 ./scripts/... - 导致 Claude Code 在执行 Stop hook 时无法找到脚本文件 修复: - 更新脚本路径为相对于插件根目录的 ./hooks/scripts/... - email-notify: ./scripts/on_task_complete.sh → ./hooks/scripts/on_task_complete.sh - ohos-porting: 更新所有三个 hook 的脚本路径 (PreToolUse, PostToolUse, Stop) 验证: - 所有脚本文件已确认存在 - hooks.json JSON 格式验证通过 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题概述
修复插件市场配置的两类问题:
变更内容
1. 补全插件配置信息
email-notify和project-structure插件条目category:开发工具 / 生产力工具tags:搜索关键词homepage:GitHub 项目地址license:MIT 许可证2. 修复 hooks.json 脚本路径
✅ email-notify/hooks/hooks.json
./scripts/on_task_complete.sh→./hooks/scripts/on_task_complete.sh✅ ohos-porting/hooks/hooks.json(修复 3 个 hook)
./scripts/detect_ohos_context.sh→./hooks/scripts/detect_ohos_context.sh./scripts/on_compile_error.sh→./hooks/scripts/on_compile_error.sh./scripts/on_session_end.sh→./hooks/scripts/on_session_end.sh技术细节
问题根因:
./hooks/scripts/,使用绝对相对路径(相对于插件根目录)解决验证:
测试计划
🤖 Generated with Claude Code